import Main from '@/components/main'
import LoginMain from '@/components/loginmain'

export default [
    {
        path: '/login',
        name: 'login',
        component: LoginMain,
        children: [
            {
                path: '/login',
                name: 'login',
                meta: {
                    title: 'pathTitle[0]'
                },
                component: () => import('@/views/login/login.vue')
            },
            {
                path: '/phonepassword',
                name: 'phonepassword',
                meta: {
                    title: 'pathTitle[1]'
                },
                component: () => import('@/views/password/phone.vue')
            },
            {
                path: '/mailboxpassword',
                name: 'mailboxpassword',
                meta: {
                    title: 'pathTitle[2]'
                },
                component: () => import('@/views/password/mailbo.vue')
            },
            {
                path: '/register',
                name: 'register',
                meta: {
                    title: 'pathTitle[3]'
                },
                component: () => import('@/views/register/register.vue')
            },
        ]
    },
    {
        path: '/',
        name: '_home',
        component: Main,
        redirect: '/home',
        children: [
            {
                path: '/home',
                name: 'home',
                meta: {
                    title: 'pathTitle[4]'
                },
                component: () => import('@/views/home/homes.vue')
            },
            // {
            //     path: '/contract',
            //     name: 'contractmain',
            //     meta: {
            //         title: 'pathTitle[5]'
            //     },
            //     component: () => import('@/views/contract/contractmain.vue')
            // },
            {
                path: '/competition',
                name: 'competition',
                meta: {
                    title: 'pathTitle[5]'
                },
                component: () => import('@/views/competition/competition.vue')
            },
            {
                path: '/power',
                name: 'power',
                meta: {
                    title: 'pathTitle[5]'
                },
                component: () => import('@/views/competition/power.vue')
            },
            // {
            //     path: '/contractorder',
            //     name: 'contractorder',
            //     meta: {
            //         title: 'pathTitle[5]',
            //         login:1
            //     },
            //     component: () => import('@/views/contract/order.vue')
            // },
            {
                path: '/transaction',
                name: 'transactionmain',
                meta: {
                    title: 'pathTitle[6]'
                },
                component: () => import('@/views/transaction/transactionmain.vue')
            },
            {
                path: '/transactionorder',
                name: 'transactionorder',
                meta: {
                    title: 'pathTitle[6]',
                    login:1
                },
                component: () => import('@/views/transaction/order.vue')
            },
            {
                path: '/fabitransaction',
                name: 'fabitransaction',
                meta: {
                    title: '法币交易',
                },
                component: () => import('@/views/fabitransaction/index.vue')
            },
            {
                path: '/fabimatch',
                name: 'fabimatch',
                meta: {
                    title: '快捷交易',
                },
                component: () => import('@/views/fabitransaction/fabimatch.vue')
            },
            // {
            //     path: '/tobuy',
            //     name: 'tobuy',
            //     meta: {
            //         title: '法币交易-发布购买',
            //         login:1
            //     },
            //     component: () => import('@/views/fabitransaction/tobuy.vue')
            // },
            // {
            //     path: '/tosell',
            //     name: 'tosell',
            //     meta: {
            //         title: '法币交易-发布出售',
            //         login:1
            //     },
            //     component: () => import('@/views/fabitransaction/tosell.vue')
            // },
            {
                path: '/fabiorder',
                name: 'fabiorder',
                meta: {
                    title: '法币交易-订单',
                    login:1
                },
                component: () => import('@/views/fabitransaction/order.vue')
            },
            {
                path: '/fabiorderdetail',
                name: 'fabiorderdetail',
                meta: {
                    title: '法币交易-订单',
                    login:1
                },
                component: () => import('@/views/fabitransaction/detail.vue')
            },
            // {
            //     path: '/applyshop',
            //     name: 'applyshop',
            //     meta: {
            //         title: '商家申请',
            //         login:1
            //     },
            //     component: () => import('@/views/fabitransaction/applyshop.vue')
            // },
            {
                path: '/applyorder',
                name: 'applyorder',
                meta: {
                    title: '发布交易列表',
                    login:1
                },
                component: () => import('@/views/fabitransaction/applyorder.vue')
            },
            {
                path: '/newsflash',
                name: 'newsflash',
                meta: {
                    title: 'pathTitle[7]'
                },
                component: () => import('@/views/newsflash/newsflashs.vue')
            },
            {
                path: '/newsflashdetails',
                name: 'newsflashdetails',
                meta: {
                    title: 'pathTitle[8]'
                },
                component: () => import('@/views/newsflash/details.vue')
            },
            {
                path: '/systemannouncement',
                name: 'systemannouncement',
                meta: {
                    title: 'pathTitle[9]'
                },
                component: () => import('@/views/systemannouncement/list.vue')
            },
            {
                path: '/systemannouncementdetails',
                name: 'systemannouncementdetails',
                meta: {
                    title: 'pathTitle[10]'
                },
                component: () => import('@/views/systemannouncement/details.vue')
            },
            {
                path: '/adoutus',
                name: 'adoutus',
                meta: {
                    title: 'pathTitle[11]'
                },
                component: () => import('@/views/adoutus/index.vue')
            },
            {
                path: '/adoutusclause',
                name: 'adoutusclause',
                meta: {
                    title: 'pathTitle[12]'
                },
                component: () => import('@/views/adoutus/clause.vue')
            },
            {
                path: '/assetstotal',
                name: 'assetstotal',
                meta: {
                    title: 'pathTitle[13]',
                    login:1
                },
                component: () => import('@/views/assets/total.vue')
            },
            {
                path: '/assetsrecharge',
                name: 'assetsrecharge',
                meta: {
                    title: 'pathTitle[14]',
                    login:1
                },
                component: () => import('@/views/assets/recharge.vue')
            },
            {
                path: '/assetswithdraw',
                name: 'assetswithdraw',
                meta: {
                    title: 'pathTitle[15]',
                    login:1
                },
                component: () => import('@/views/assets/withdraw.vue')
            },
            {
                path: '/assetstransfer',
                name: 'assetstransfer',
                meta: {
                    title: '划转',
                    login:1
                },
                component: () => import('@/views/assets/transfer.vue')
            },
            {
                path: '/assetsdetailed',
                name: 'assetsdetailed',
                meta: {
                    title: 'pathTitle[16]',
                    login:1
                },
                component: () => import('@/views/assets/detailed.vue')
            },
            // {
            //     path: '/giftdetailed',
            //     name: 'giftdetailed',
            //     meta: {
            //         title: '赠金明细',
            //         login:1
            //     },
            //     component: () => import('@/views/assets/giftdetailed.vue')
            // },
            {
                path: '/extension',
                name: 'extension',
                meta: {
                    title: 'pathTitle[17]',
                    login:1
                },
                component: () => import('@/views/extension/index.vue')
            },
            {
                path: '/authentication',
                name: 'authentication',
                meta: {
                    title: 'pathTitle[18]',
                    login:1
                },
                component: () => import('@/views/authentication/index.vue')
            },
            {
                path: '/authenticationprimary',
                name: 'authenticationprimary',
                meta: {
                    title: 'pathTitle[19]',
                    login:1
                },
                component: () => import('@/views/authentication/primary.vue')
            },
            {
                path: '/authenticationsenior',
                name: 'authenticationsenior',
                meta: {
                    title: 'pathTitle[20]',
                    login:1
                },
                component: () => import('@/views/authentication/senior.vue')
            },
            {
                path: '/withdrawal',
                name: 'withdrawal',
                meta: {
                    title: 'pathTitle[21]',
                    login:1
                },
                component: () => import('@/views/withdrawal/index.vue')
            },
            {
                path: '/securitycenter',
                name: 'securitycenter',
                meta: {
                    title: 'pathTitle[22]',
                    login:1
                },
                component: () => import('@/views/securitycenter/index.vue')
            },
            {
                path: '/syloginpassword',
                name: 'syloginpassword',
                meta: {
                    title: 'pathTitle[23]',
                    login:1
                },
                component: () => import('@/views/securitycenter/loginpassword.vue')
            },
            {
                path: '/syphone',
                name: 'syphone',
                meta: {
                    title: 'pathTitle[24]',
                    login:1
                },
                component: () => import('@/views/securitycenter/phone.vue')
            },
            {
                path: '/syemail',
                name: 'syemail',
                meta: {
                    title: 'pathTitle[25]',
                    login:1
                },
                component: () => import('@/views/securitycenter/email.vue')
            },
            {
                path: '/sycapitalpassword',
                name: 'sycapitalpassword',
                meta: {
                    title: 'pathTitle[26]',
                    login:1
                },
                component: () => import('@/views/securitycenter/capitalpassword.vue')
            },
            {
                path: '/sycapitalpasswordmodify',
                name: 'sycapitalpasswordmodify',
                meta: {
                    title: 'pathTitle[27]',
                    login:1
                },
                component: () => import('@/views/securitycenter/capitalpasswordmodify.vue')
            },
            {
                path: '/sygoogle',
                name: 'sygoogle',
                meta: {
                    title: 'pathTitle[28]',
                    login:1
                },
                component: () => import('@/views/securitycenter/google.vue')
            },
            {
                path: '/payways',
                name: 'payways',
                meta: {
                    title: '支付方式',
                    login:1
                },
                component: () => import('@/views/payways/index.vue')
            },
        ]
    },
]
